#ifndef THREAD_UTILS_H
#define THREAD_UTILS_H

#include "PrecisionTime.h"

namespace ThreadUtils
{
	bool InMainThread();

	//Sleep for milliseconds
	void SleepFor(int ms);
	//Sleep for milliseconds, with maximum precision
	void PrecisionSleepFor(double ms);
	//Sleep until absolute wakeup time
	void PrecisionSleepUntil(PrecisionTime wakeup);

	int NumberOfProcessors();
}

#endif